<table width="100%" border="0" cellspacing="0" cellpadding="0">
  <tr>
    <td  width="6"><img src="__PUBLIC__/Images/Default/pro_left_top.gif" width="6" height="6" /></td>
    <td colspan="2" background="__PUBLIC__/Images/Default/pro_center_top.gif"></td>
    <td width="10"><img src="__PUBLIC__/Images/Default/pro_right_top.gif" width="10" height="6" /></td>
  </tr>
  <tr>
    <td background="__PUBLIC__/Images/Default/pro_left.gif"></td>
    <td colspan="2" bgcolor="White" align="left" valign="top">  
	    <table width="402" border="0" cellspacing="0" cellpadding="0" >
	    <tr onclick="javascript:$('#toolbarProduct').hide();" style="cursor:pointer">
		 <td align="right" bgcolor="#F3F3F3" style="height:15px!important;"> <span class="psearch_close">&nbsp;</span></td></tr>
		 </table> 
	    <div style="max-height:500px; overflow-y:auto;overflow-x:hidden;">   
	    <table width="385" border="0" cellspacing="0" cellpadding="0" >
	       <tr><td colspan="4" align="left" >   
	       {if $rs}  
		    {if $state==2}
		    {foreach item=item from=$rs}   
		   <div class="toolbar_productul"><ul><li>
	{$lang.product_no}：<a href="javascript:;" onclick="$.setToolsBarProduct('{$item.product_no}')">{$item.product_no_search}</a>
	
	</li></ul></div>
		      {/foreach}
		    {else}   <input type="hidden" id="toolbar_pid" value="{$rs.id}"> 
	       </td></tr>
		      <tr>
		        <td width="23%" class="tbold">{$lang.product_no}：</td>
		        <td width="27%" class="tred t_right pad_right_6">{$rs.product_no}</td>
		        <td width="23%"class="tbold">{$lang.product_name}：</td>
		        <td class="tred t_right pad_right_3 pad_right_3">{$rs.product_name}</td>
		      </tr>
		      <tr>
		        <td colspan="4" class="tbold" background="__PUBLIC__/Images/Default/line.gif"  height="1"></td>
		      </tr>
		      <tr>
		        <td class="tbold">{$lang.class_name}：</td>
		        <td class="tred t_right pad_right_6">{$rs.class_name}</td>
		        <td class="tbold">{$lang.storage_1}：</td>
				<td class="tred t_right pad_right_3">{$rs.dml_capability}</td>
		      </tr>
				<tr><td colspan="4" class="tbold" background="__PUBLIC__/Images/Default/line.gif"  height="1"></td></tr>
				{if C("storage_format")==3}
				<tr>
				<td class="tbold">{$lang.dozen}：</td>
				<td class="tred t_right pad_right_6">{$rs.dml_dozen}</td>
				<td class="tbold">{$lang.storage_2}：</td>
				<td class="tred t_right pad_right_3">{$rs.capability/$rs.dozen}</td>
				</tr>
				<tr><td colspan="4" class="tbold" background="__PUBLIC__/Images/Default/line.gif"  height="1"></td></tr>
				{/if}
		      
		      {if $role_type==1 || $role_type==3}
		      	<tr>
			      <td class="tbold">{$lang.instock_price}：</td>
			      <td class="tred t_right pad_right_6">{if $role_type==3}--{else}{$rs.dml_instock_price}{/if}({$cur.in})</td>
			      <td class="tbold">{$lang.sale_price}：</td>
			      <td class="tred t_right pad_right_3">{$rs.dml_sale_price|dml}({$cur.out})</td>
			    </tr>
			    {if C("multi_client")==1}
			    <tr><td colspan="4" class="tbold" background="__PUBLIC__/Images/Default/line.gif"  height="1"></td></tr>
			     <tr>
			      <td class="tbold">{$lang.retail_price}：</td>
			      <td class="tred t_right pad_right_6">{$rs.dml_retail_price|dml}({$cur.out})</td>
			        <td class="tbold">{$lang.wholesale_price}：</td>
			      <td class="tred t_right pad_right_3">{$rs.dml_wholesale_price}({$cur.out})</td>
			    </tr>
			    {/if}
			    <tr><td colspan="4" class="tbold" background="__PUBLIC__/Images/Default/line.gif"  height="1"></td></tr>
		   {/if}
	       {if $storage}
	      <tr>
	        <td colspan="4" ><div class="fl blue tbold" style="widht:110px; padding-right:5px;">▼{$lang.sale_storage}</div>
	        {if C("loadContainer.sale_storage")==1}<div class="storage_title"></div>{$lang.onroad_storage}{/if}</td>
	      </tr>
	      <tr>
	        <td colspan="4" >
	      <table width="100%" border="0" cellspacing="0" cellpadding="0" class="add_table_autoshow">
	      <tr>
			{if C('STORAGE_COLOR')}<th>{$lang.color}</th>{/if}
			{if C('STORAGE_SIZE')}<th>{$lang.size}</th>{/if}
			<th>{$lang.quantity}</th>
			{if C('STORAGE_FORMAT')>=2}<th>{$lang.capability}</th>{/if}
			{if C('STORAGE_FORMAT')>=3}<th>{$lang.dozen}</th>{/if}
			{if C('STORAGE_MANTISSA')}<th>{$lang.mantissa_2}</th>{/if}
		 </tr>
	      {foreach item=item2 from=$storage.list}
	       <tr {if $item2.lc_state==2}class="line_bzyellow"{/if}>
		    {if C('STORAGE_COLOR')}<td>{$item2.color_name}</td>{/if}
			{if C('STORAGE_SIZE')}<td>{$item2.size_name}</td>{/if}
		    <td class="t_right">{$item2.dml_quantity}</td>
		    {if C('STORAGE_FORMAT')>=2} <td class="t_right">{$item2.dml_capability}</td>{/if}
		    {if C('STORAGE_FORMAT')>=3}<td class="t_right">{$item2.dml_dozen}</td>{/if}
		    {if C('STORAGE_MANTISSA')}<td>{if $item2.mantissa==2}√{/if}</td>{/if}
		  </tr>
	      {/foreach}
	      <tr>
		    {if C('STORAGE_COLOR')}<td>&nbsp;</td>{/if}
			{if C('STORAGE_SIZE')}<td>&nbsp;</td>{/if}
		    {if C('STORAGE_FORMAT')==2}<td class="t_right tred" colspan="2">{elseif C('STORAGE_FORMAT')==3}<td class="t_right tred" colspan="3">{else}<td class="t_right tred">{/if}
		    {$lang.row_total}：{$storage.total.quantity}（{$lang.quantity}）</td>
		    {if C('STORAGE_MANTISSA')}<td>&nbsp;</td>{/if}
		  </tr>
	      </table>
	      </td>
	      </tr>
		    {/if}
		   
	       {if $real_storage}
	        <tr>
	        <td colspan="4" ><div class="fl blue tbold" style="widht:110px; padding-right:5px;">▼{$lang.real_storage}</div></td>
	      </tr>
	      <tr>
	        <td colspan="4" >
	      <table width="100%" border="0" cellspacing="0" cellpadding="0" class="add_table_autoshow">
	      <tr>
			{if C('STORAGE_COLOR')}<th>{$lang.color_autoshow}</th>{/if}
			{if C('STORAGE_SIZE')}<th>{$lang.size_autoshow}</th>{/if}
			<th>{$lang.quantity}</th>
			{if C('STORAGE_FORMAT')>=2}<th>{$lang.capability}</th>{/if}
			{if C('STORAGE_FORMAT')>=3}<th>{$lang.dozen}</th>{/if}
			{if C('MULTI_STORAGE')==1}<th>{$lang.warehouse_name}</th>{/if}
			{if C('STORAGE_MANTISSA')}<th>{$lang.mantissa_2}</th>{/if}
		 </tr>
	      {foreach item=item2 from=$real_storage.list}
	       <tr>
		    {if C('STORAGE_COLOR')}<td>{$item2.color_name}</td>{/if}
			{if C('STORAGE_SIZE')}<td>{$item2.size_name}</td>{/if}
		    <td class="t_right">{$item2.dml_quantity}</td>
		    {if C('STORAGE_FORMAT')>=2}<td class="t_right">{$item2.dml_capability}</td>{/if}
		    {if C('STORAGE_FORMAT')>=3}<td class="t_right">{$item2.dml_dozen}</td>{/if}
		    {if C('MULTI_STORAGE')==1}<td>{$item2.w_name}</td>{/if}
		    {if C('STORAGE_MANTISSA')}<td>{if $item2.mantissa==2}√{/if}</td>{/if}
		  </tr>
	      {/foreach}
	      <tr>
		    {if C('STORAGE_COLOR')}<td>&nbsp;</td>{/if}
			{if C('STORAGE_SIZE')}<td>&nbsp;</td>{/if}
		     {if C('STORAGE_FORMAT')==2}
		     {if C('MULTI_STORAGE')==1}<td class="t_right tred" colspan="3">{else}<td class="t_right tred" colspan="2">{/if}
		     {elseif C('STORAGE_FORMAT')==3}
		     {if C('MULTI_STORAGE')==1}<td class="t_right tred" colspan="4">{else}<td class="t_right tred" colspan="3">{/if}
		     {else}
		     {if C('MULTI_STORAGE')==1}<td class="t_right tred" colspan="2">{else}<td class="t_right tred">{/if}
		     {/if}
		    {$lang.row_total}：{$real_storage.total.quantity}（{$lang.quantity}）</td>
		    {if C('STORAGE_MANTISSA')}<td>&nbsp;</td>{/if}
		  </tr>
	      </table>
	      </td>
	      </tr>
		    {/if}
		     
		   {/if}
		  {else}
		  <tr>
		        <td>{$lang.no_product_storage}</td>
		     </tr>
		  {/if}
	    </table>
	</div>
    </td>
    <td background="__PUBLIC__/Images/Default/pro_right.gif"></td>
  </tr>
  <tr>
    <td width="6"><img src="__PUBLIC__/Images/Default/pro_left_bow.gif" width="6" height="18" /></td>
    <td width="368" background="__PUBLIC__/Images/Default/pro_center_bow.gif"></td>
    <td width="36"><img src="__PUBLIC__/Images/Default/pro_bow_arrow.gif" width="36" height="18" /></td>
    <td width="10"><img src="__PUBLIC__/Images/Default/pro_right_bow.png" /></td>
  </tr>
</table>